
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="calendarPatternCode" ><@label key="calendarPatternCode.C,colon">日历模式编号：</@label></label> <input type="text" name="calendarPatternCode" value="${condition.calendarPatternCode!''}" /></li>
                <li><label id="calendarPatternText" ><@label key="calendarPatternText.C,colon">日历模式描述：</@label></label> <input type="text" name="calendarPatternText" value="${condition.calendarPatternText!''}" /></li>
                <li><label><@label key="lockFlag.L">锁定标记：</@label></label> <select name="lockFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                        </select></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button id="st" type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="CALENDARPATTERN_ADD" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="635" height="430" href="${rc.getContextPath()}/manage/calendarPattern/addCalendarPattern?navTabId=${navTabId!''}" rel="addCalendarPattern" title="<@label key="addCalendarPattern.C">新增日历模式</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="CALENDARPATTERN_EDIT" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="635" height="430" href="${rc.getContextPath()}/manage/calendarPattern/editCalendarPattern?id={calendarPattern_code}&navTabId=${navTabId!''}" rel="modifyCalendarPattern" title="<@label key="editCalendarPattern.C">编辑日历模式</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="CALENDARPATTERN_VIEW" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="635" height="430" href="${rc.getContextPath()}/manage/calendarPattern/viewCalendarPattern?id={calendarPattern_code}&navTabId=${navTabId!''}" rel="viewCalendarPattern" title="<@label key="viewCalendarPattern.C">日历模式详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="CALENDARPATTERN_DEL" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" postType="string" rel="ids" href="${rc.getContextPath()}/manage/calendarPattern/deleteCalendarPattern?navTabId=${navTabId!''}" callback="batchjobAjaxDone" title="<@label key="delCalendarPattern.M">确认要删除选中的日历模式吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="100" orderField="calendarPatternCode"<#if (page.orderField?? && page.orderField == 'calendarPatternCode')>class="${page.orderDirection!''}"</#if>><@label key="calendarPatternCode.C">日历模式编号</@label></th>
                <th width="100" orderField="calendarPatternText"<#if (page.orderField?? && page.orderField == 'calendarPatternText')>class="${page.orderDirection!''}"</#if>><@label key="calendarPatternText.C">日历模式描述</@label></th>
                <th width="100" orderField="baseDate"<#if (page.orderField?? && page.orderField == 'baseDate')>class="${page.orderDirection!''}"</#if>><@label key="baseDate.C">基准日期</@label></th>
                <th width="100" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as calendarPattern>
            <tr target="calendarPattern_code" rel="${calendarPattern.calendarPatternCode!''}">
                <td><input name="ids" value="${calendarPattern.calendarPatternCode!''}" type="checkbox"></td>
                <td>${calendarPattern.calendarPatternCode!''}</td>
                <td>${calendarPattern.calendarPatternText!''}</td>
                <td>
                 ${calendarPattern.baseDate?string("yyyy-MM-dd")}
                </td>
                <td><#if (calendarPattern.lockFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
            </tr>
            </#list> <#else>
            <tr target="calendarPattern_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="calendarPattern_code">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>